package com.itheima.easy.enums;

import com.itheima.easy.base.IBasicEnum;

/**
* @ClassName ResourceEnum.java
* @Description 权限表枚举
*/

public enum ResourceEnum implements IBasicEnum {

    SUCCEED(200,"操作成功"),
    FAIL(1000,"操作失败"),
    PAGE_FAIL(55001, "分页查询权限表列表失败"),
    FIND_FAIL(55002, "查询权限表失败"),
    SAVE_FAIL(55003, "保存权限表失败"),
    UPDATE_FAIL(55004, "修改权限表失败"),
    DEL_FAIL(55005, "删除权限表失败"),
    LIST_FAIL(55006, "查询权限表失败"),
    TREE_FAIL(55007, "权限表tree失败"),
    MENUS_FAIL(55008, "菜单加载失败")
    ;

    private int code;

    private String msg;

    ResourceEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

}
